<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 8/15/17
 * Time: 1:53 PM
 */

namespace api\modules\test\controllers;


use common\components\gps\Jimi;
use wodrow\yii\rest\Controller;

class JiMiController extends Controller
{
    /**
     * 几米 模拟获取设备定位地图页面
     */
    public function actionGetLocationMap($imei, $map_type='BAIDU')
    {
        $jimi = new Jimi();
        $r = $jimi->getLocationMap([
            'imei'=>$imei,
            'map_type'=>$map_type,
        ]);
        echo $r->result;exit;
        var_dump($r);exit;
    }
}